﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DF7 RID: 3575
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RelicAvatarRecommendScRsp : IMessage<RelicAvatarRecommendScRsp>, IMessage, IEquatable<RelicAvatarRecommendScRsp>, IDeepCloneable<RelicAvatarRecommendScRsp>, IBufferMessage
	{
		// Token: 0x17002D62 RID: 11618
		// (get) Token: 0x0600A074 RID: 41076 RVA: 0x001ACF9F File Offset: 0x001AB19F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RelicAvatarRecommendScRsp> Parser
		{
			get
			{
				return RelicAvatarRecommendScRsp._parser;
			}
		}

		// Token: 0x17002D63 RID: 11619
		// (get) Token: 0x0600A075 RID: 41077 RVA: 0x001ACFA6 File Offset: 0x001AB1A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RelicAvatarRecommendScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002D64 RID: 11620
		// (get) Token: 0x0600A076 RID: 41078 RVA: 0x001ACFB8 File Offset: 0x001AB1B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RelicAvatarRecommendScRsp.Descriptor;
			}
		}

		// Token: 0x0600A077 RID: 41079 RVA: 0x001ACFBF File Offset: 0x001AB1BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RelicAvatarRecommendScRsp()
		{
		}

		// Token: 0x0600A078 RID: 41080 RVA: 0x001ACFD4 File Offset: 0x001AB1D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RelicAvatarRecommendScRsp(RelicAvatarRecommendScRsp other) : this()
		{
			this.enable_ = other.enable_;
			this.relicSetId_ = other.relicSetId_;
			this.retcode_ = other.retcode_;
			this.avatarIdList_ = other.avatarIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A079 RID: 41081 RVA: 0x001AD02D File Offset: 0x001AB22D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RelicAvatarRecommendScRsp Clone()
		{
			return new RelicAvatarRecommendScRsp(this);
		}

		// Token: 0x17002D65 RID: 11621
		// (get) Token: 0x0600A07A RID: 41082 RVA: 0x001AD035 File Offset: 0x001AB235
		// (set) Token: 0x0600A07B RID: 41083 RVA: 0x001AD03D File Offset: 0x001AB23D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Enable
		{
			get
			{
				return this.enable_;
			}
			set
			{
				this.enable_ = value;
			}
		}

		// Token: 0x17002D66 RID: 11622
		// (get) Token: 0x0600A07C RID: 41084 RVA: 0x001AD046 File Offset: 0x001AB246
		// (set) Token: 0x0600A07D RID: 41085 RVA: 0x001AD04E File Offset: 0x001AB24E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RelicSetId
		{
			get
			{
				return this.relicSetId_;
			}
			set
			{
				this.relicSetId_ = value;
			}
		}

		// Token: 0x17002D67 RID: 11623
		// (get) Token: 0x0600A07E RID: 41086 RVA: 0x001AD057 File Offset: 0x001AB257
		// (set) Token: 0x0600A07F RID: 41087 RVA: 0x001AD05F File Offset: 0x001AB25F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17002D68 RID: 11624
		// (get) Token: 0x0600A080 RID: 41088 RVA: 0x001AD068 File Offset: 0x001AB268
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> AvatarIdList
		{
			get
			{
				return this.avatarIdList_;
			}
		}

		// Token: 0x0600A081 RID: 41089 RVA: 0x001AD070 File Offset: 0x001AB270
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RelicAvatarRecommendScRsp);
		}

		// Token: 0x0600A082 RID: 41090 RVA: 0x001AD080 File Offset: 0x001AB280
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RelicAvatarRecommendScRsp other)
		{
			return other != null && (other == this || (this.Enable == other.Enable && this.RelicSetId == other.RelicSetId && this.Retcode == other.Retcode && this.avatarIdList_.Equals(other.avatarIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A083 RID: 41091 RVA: 0x001AD0F0 File Offset: 0x001AB2F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Enable)
			{
				num ^= this.Enable.GetHashCode();
			}
			if (this.RelicSetId != 0U)
			{
				num ^= this.RelicSetId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.avatarIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A084 RID: 41092 RVA: 0x001AD16F File Offset: 0x001AB36F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A085 RID: 41093 RVA: 0x001AD177 File Offset: 0x001AB377
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A086 RID: 41094 RVA: 0x001AD180 File Offset: 0x001AB380
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Enable)
			{
				output.WriteRawTag(48);
				output.WriteBool(this.Enable);
			}
			if (this.RelicSetId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.RelicSetId);
			}
			this.avatarIdList_.WriteTo(ref output, RelicAvatarRecommendScRsp._repeated_avatarIdList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A087 RID: 41095 RVA: 0x001AD208 File Offset: 0x001AB408
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Enable)
			{
				num += 2;
			}
			if (this.RelicSetId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RelicSetId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.avatarIdList_.CalculateSize(RelicAvatarRecommendScRsp._repeated_avatarIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A088 RID: 41096 RVA: 0x001AD280 File Offset: 0x001AB480
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RelicAvatarRecommendScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Enable)
			{
				this.Enable = other.Enable;
			}
			if (other.RelicSetId != 0U)
			{
				this.RelicSetId = other.RelicSetId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.avatarIdList_.Add(other.avatarIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A089 RID: 41097 RVA: 0x001AD2F5 File Offset: 0x001AB4F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A08A RID: 41098 RVA: 0x001AD300 File Offset: 0x001AB500
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 64U)
				{
					if (num == 48U)
					{
						this.Enable = input.ReadBool();
						continue;
					}
					if (num == 64U)
					{
						this.RelicSetId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 112U || num == 114U)
					{
						this.avatarIdList_.AddEntriesFrom(ref input, RelicAvatarRecommendScRsp._repeated_avatarIdList_codec);
						continue;
					}
					if (num == 120U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04003DE0 RID: 15840
		private static readonly MessageParser<RelicAvatarRecommendScRsp> _parser = new MessageParser<RelicAvatarRecommendScRsp>(() => new RelicAvatarRecommendScRsp());

		// Token: 0x04003DE1 RID: 15841
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003DE2 RID: 15842
		public const int EnableFieldNumber = 6;

		// Token: 0x04003DE3 RID: 15843
		private bool enable_;

		// Token: 0x04003DE4 RID: 15844
		public const int RelicSetIdFieldNumber = 8;

		// Token: 0x04003DE5 RID: 15845
		private uint relicSetId_;

		// Token: 0x04003DE6 RID: 15846
		public const int RetcodeFieldNumber = 15;

		// Token: 0x04003DE7 RID: 15847
		private uint retcode_;

		// Token: 0x04003DE8 RID: 15848
		public const int AvatarIdListFieldNumber = 14;

		// Token: 0x04003DE9 RID: 15849
		private static readonly FieldCodec<uint> _repeated_avatarIdList_codec = FieldCodec.ForUInt32(114U);

		// Token: 0x04003DEA RID: 15850
		private readonly RepeatedField<uint> avatarIdList_ = new RepeatedField<uint>();
	}
}
